package com.apes.auto.car.repository;

import com.apes.auto.car.model.VehicleType;
import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface VehicleTypeRepository extends CustomRepository<VehicleType, String> {
    @Query("select MAX (T.sequence) from VehicleType T where 1=1 and (T.vehicleLabel.id =:value)")
    String findByMAXSequence(@Param("value") String vehicleLabelID);
}
